<!DOCTYPE html><html style="--qzhai-primary: #44cef6;"><!-- This web page is copied by the "https://bazhan.wang" --><head><meta charset="utf-8">

    <meta name="robots" content="noindex,nofollow">

    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <title>小菜个人 - 博客</title>
    <meta name="keywords" content="小菜博客,欢迎来到小菜的个人博客">
    <meta name="description" content="小菜博客,小菜,小菜小菜，欢迎来到小菜的个人博客">
    <link rel="shortcut icon" href="/favicon.ico" />
    <link rel="stylesheet" id="wp-block-library-css" href="/css/style.min.css" type="text/css" media="all">
    <link rel="stylesheet" id="highlight-monokai-sublime-css" href="/css/monokai-sublime.css" type="text/css" media="all">
    <link rel="stylesheet" id="qzhai_app-css" href="/css/gohan.css" type="text/css" media="all">
    @include('layout.statistics')
    <script>var func_qzhai = [];</script>

    <style>
        .mobile-hide {
            display: block;
        }

        @media only screen and (max-width: 768px) {
            .mobile-hide {
                display: none;
            }
        }
    </style>

</head>
<body>

<div  class="wp qzhai-net mobile-hide" style="height: 15px;">
    <div class="qzhai-main-content uk-card uk-card-default uk-card-body" style="height: 100%;text-align: center">

        <p style="width: 100%;text-align: left;margin-top: -10px;">

            欢迎来到小菜的个人博客，而你我的朋友，你才是英雄。

        @if(isset($user))
            <div style="text-align: right;margin-top: -45px;cursor:pointer;" onclick="logout()">
               欢迎你- {{$user->nickname}}
                退出
            </div>
        @else
            <div style="text-align: right;margin-top: -45px;cursor:pointer;" onclick="login()">
                登录/注册
            </div>
        @endif


        </p>


    </div>
</div>

<div class="wp qzhai-net" style="height: 10px;"></div>

<div id="qzhai-net" class="wp qzhai-net" style="top: 10px;">
    <div class="uk-grid-small" uk-grid="">

        <div class="uk-width-1-6@s mobile-hide">
            <div uk-sticky="offset: 50">

                <div class="qzhai-header uk-card uk-card-default">
                    <div class="uk-card-header">
                        <div class="hd uk-flex uk-flex-column uk-flex-middle uk-flex-center">
                            <a href="#" class="qzhai-logo">
                                <img class="uk-border-circle" src="/images/xiaocai.jpg">
                            </a>
                            <div class="uk-width-expand uk-text-center">
                                <h1> <a href="#"> 小菜 </a> </h1>
                                <p class="uk-text-meta uk-margin-remove">
                                    小菜的博客站
                                </p>
                            </div>
                        </div>

                        <div class="icons uk-flex uk-flex-center">
                            <ul class="uk-flex uk-flex-center uk-flex-wrap">
                            </ul>
                        </div>

                    </div>

                    @include('layout.left')

                    <div class="qzhai-menu-icon uk-flex uk-flex-center uk-hidden@s">
                        <a uk-navbar-toggle-icon="" href="#qzhai-main-menu-mobile" uk-toggle=""></a>
                    </div>
                </div>
                <div class="qzhai-footer-info uk-flex uk-flex-center">

                    <a href="http://beian.miit.gov.cn" target="_blank" class="Record">
                        蜀ICP备2023023222号-1
                    </a>
                </div>

            </div>
        </div>

        <div class="uk-width-5-6@s">
            <div id="qzhai_content" class="uk-grid-small" uk-grid="">


                <div id="qzhai-main" class="uk-width-3-4@s">

                    <div class="qzhai-main-content uk-card uk-card-default uk-card-body">

                        <div class="uk-alert-success"  uk-alert="" id="happy" style="display: none">
                            <a class="uk-alert-close" uk-close=""></a>
                            <p id="happy_text">现在开心了吗？</p>
                        </div>

                        <div class="uk-alert-warning" uk-alert="" id="comments">
                            <a class="uk-alert-close" uk-close=""></a>
                            <p>问题反馈开起了，有什么问题大家多多反馈....</p>
                        </div>

                        <div class="uk-alert-success" uk-alert="" id="comments">
                            <a class="uk-alert-close" uk-close=""></a>
                            <p>登录注册开放了....</p>
                        </div>

                        <div class="uk-alert-danger" uk-alert="" id="comments">
                            <a class="uk-alert-close" uk-close=""></a>
                            <p>图集全面升级速度快到飞起....</p>
                        </div>

                        <div class="qzhai-post qzhai-home-item">
                            <div class="qzhai-headlines uk-clearfix">

                                @foreach($randoms as $rand)
                                    <div>
                                        <a href="{{ route('details2').'?id='.$rand['id'] }}"
                                           class="img  uk-background-cover uk-inline uk-light"
                                           data-src="{{ $rand->main_image }}" uk-img="" >
                                            <div class="uk-overlay-primary uk-position-cover"></div>
                                            <div class="uk-overlay uk-position-bottom uk-light">
                                                <h1>{{ $rand->category_name }}</h1>
                                                <p class="uk-visible@s">
                                                    {{ $rand->describe }}
                                                </p>
                                            </div>
                                        </a>
                                    </div>
                                @endforeach

                            </div>

                        </div>


                        <div class="qzhai-post qzhai-home-item">
                            <div class="qzhai-home-title uk-margin uk-text-center">
                                <span>最新文章</span>
                            </div>

                            <ul class="qzhai-list-loop">

                                @foreach($news as $new)
                                    <li class="item multi-map uk-grid-medium uk-grid-match" uk-grid="">
                                        <div class="uk-width-1-1">
                                            <div class="uk-flex uk-flex-column uk-flex-between">
                                                <div>
                                                    <h2>
                                                        <a href="{{ route('details2').'?id='.$new['id'] }}">{{ $new->title }}</a>
                                                    </h2>
                                                    <p>
                                                        <a href="{{ route('details2').'?id='.$new['id'] }}" style="color: black">{{ $new->describe }}</a>
                                                    </p>
                                                </div>
                                            </div>
                                        </div>

                                        <div class="uk-width-1-1 multi-img-grid">
                                            <div class="uk-child-width-1-3 uk-grid-medium" uk-grid="">
                                                <div>
                                                    <a href="{{ route('details2').'?id='.$new['id'] }}"
                                                       class="img uk-background-cover"
                                                       data-src="{{ $new->main_image }}" uk-img="">
                                                    </a>
                                                </div>
                                            </div>
                                        </div>

                                        <div class="uk-width-1-1 other uk-margin-small-top ">
                                            <div>
                                                <span class="post-list-label uk-label" style="background-color: #22e9e6;">{{ $new->category_name }}</span>

                                                <time> {{ date('Y-m-d',strtotime($new['created_at'])) }}</time>
                                            </div>
                                        </div>
                                    </li>
                                @endforeach

                                @foreach($hots as $hot)
                                        <li class="item uk-grid-medium uk-grid-match" uk-grid="">
                                            <div class="uk-width-2-3">
                                                <div class="uk-flex uk-flex-column uk-flex-between">
                                                    <div>
                                                        <h2>
                                                            <a href="{{ route('details2').'?id='.$hot['id'] }}">{{ $hot->title }}</a>
                                                        </h2>
                                                        <p>
                                                            {{ $hot->describe }}
                                                        </p>
                                                    </div>
                                                    <div class="other">
                                                        <a href="#" class="label"> {{ $hot->category_name }} </a>
                                                        <time> {{ date('Y-m-d',strtotime($hot['created_at'])) }} </time>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="uk-width-1-3">
                                                <a href="{{ route('details2').'?id='.$hot['id'] }}"
                                                   class="img uk-flex uk-flex-column uk-flex-right uk-card-body uk-background-cover"
                                                   data-src="{{ $hot->main_image }}" uk-img="">
                                                </a>
                                            </div>
                                        </li>
                                @endforeach

                                @foreach($randoms2 as $random2)
                                        <li class="item multi-map uk-grid-medium uk-grid-match" uk-grid="">
                                            <div class="uk-width-1-1">
                                                <div class="uk-flex uk-flex-column uk-flex-between">
                                                    <div>
                                                        <h2>
                                                            <a href="{{ route('details2').'?id='.$random2['id'] }}">{{ $random2->title }}</a>
                                                        </h2>
                                                        <p>
                                                            {{ $random2->describe }}
                                                        </p>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="uk-width-1-1 multi-img-grid">
                                                <div class="uk-child-width-1-3 uk-grid-medium" uk-grid="">
                                                    <div>
                                                        <a href="{{ route('details2').'?id='.$random2['id'] }}" class="img uk-background-cover"
                                                           data-src="{{ $random2->main_image }}" uk-img=""></a>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="uk-width-1-1 other uk-margin-small-top ">
                                                <div>
                                                    <span class="post-list-label uk-label" style="background-color: #22e9e6;">{{ $random2->category_name }}</span>
                                                    <time> {{ date('Y-m-d',strtotime($random2['created_at'])) }} </time>
                                                </div>
                                            </div>
                                        </li>
                                @endforeach

                            </ul>



                        </div>

                        {{--页面banner 629.86*125.97 --}}
                        <div class="qzhai-img qzhai-home-item" style="text-align: center">
                            <a href="#">
                                <img src="https://upload.xiaocai.ink/R-C.jpg" style="width:629.86px;height: 125.97px; ">
                            </a>
                        </div>

                        <div class="qzhai-post qzhai-home-item">
                            <div class="qzhai-home-title uk-margin uk-text-center">
                                <span>奇思妙想</span>
                            </div>

                            <div class="qzhai-related-articles">
                                <div uk-slider="autoplay: true; sets: true">
                                    <div class="uk-position-relative uk-visible-toggle uk-light" tabindex="-1">
                                        <ul class="uk-slider-items uk-child-width-1-4@s uk-child-width-1-2 uk-grid uk-grid-small">
                                            @foreach($eights as $eight)
                                                <li>
                                                    <div class="uk-card uk-position-relative">
                                                        @if(isset($eight->main_image))
                                                            <div class="img uk-background-cover" data-src="{{ $eight->main_image }}" uk-img=""></div>
                                                        @else
                                                            <div class="img uk-background-cover" data-src="/404/404_2.webp" uk-img=""></div>
                                                        @endif
                                                        <h3 class="uk-card-title uk-margin-small-top uk-margin-remove-bottom">{{ $eight->title }}</h3>
                                                        <a href="{{ route('details2').'?id='.$eight['id'] }}" data-can-open="1"></a>
                                                    </div>
                                                </li>
                                            @endforeach

                                        </ul>
                                    </div>
                                </div>
                            </div>

                        </div>

                        <div class="qzhai-categories qzhai-home-item">
                            <div class="qzhai-home-title uk-margin uk-text-center">
                                <span>推荐版块</span>
                            </div>
                            <div class="list uk-child-width-1-2@s uk-text-center uk-grid-small" uk-grid="">

                                <div>
                                    <a href="{{ route('category2').'?category_id='.$cates[0]->id }}" class="img uk-background-cover"
                                       data-src="https://upload.xiaocai.ink/tieta.jpg" uk-img="">

                                    </a>
                                    <h4>
                                        <a href="{{ route('category2').'?category_id='.$cates[0]->id }}">
                                            {{ $cates[0]->name }}
                                        </a>
                                    </h4>
                                </div>

                                <div>
                                    <a href="{{ route('category2').'?category_id='.$cates[1]->id }}" class="img uk-background-cover"
                                       data-src="https://upload.xiaocai.ink/youxiang.jpg" uk-img=""></a>
                                    <h4>
                                        <a href="{{ route('category2').'?category_id='.$cates[1]->id }}">
                                            {{ $cates[1]->name }}
                                        </a>
                                    </h4>
                                </div>

                                <div>
                                    <a href="{{ route('category2').'?category_id='.$cates[2]->id }}" class="img uk-background-cover"
                                       data-src="https://upload.xiaocai.ink/meishi.jpg" uk-img=""></a>
                                    <h4>
                                        <a href="{{ route('category2').'?category_id='.$cates[2]->id }}">
                                            {{ $cates[2]->name }}
                                        </a>
                                    </h4>
                                </div>

                                <div>
                                    <a href="{{ route('category2').'?category_id='.$cates[3]->id }}" class="img uk-background-cover"
                                       data-src="https://upload.xiaocai.ink/lvxing.jpg" uk-img=""></a>
                                    <h4>
                                        <a href="{{ route('category2').'?category_id='.$cates[3]->id }}">
                                            {{ $cates[3]->name }}
                                        </a>
                                    </h4>
                                </div>
                            </div>
                        </div>

                        <div class="qzhai-html qzhai-home-item">

                            <div class="qzhai-home-title uk-margin uk-text-center">
                                <span>提示</span>
                            </div>
                            <div class="uk-alert-success" uk-alert="">
                                <a class="uk-alert-close" uk-close=""></a>
                                <p>一些故事就此开始啦！</p>
                            </div>
                            <div class="uk-alert-danger" uk-alert="">
                                <a class="uk-alert-close" uk-close=""></a>
                                <p>我的秘密 - <a href="#" class="uk-link-text">[.......]</a></p>
                            </div>
                        </div>


                        <div class="qzhai-html qzhai-home-item">

                            <div class="qzhai-home-title uk-margin uk-text-center">
                                <span>友情链接</span>
                            </div>
                            @foreach($links as $link)
                                <a href="{{ $link['url'] }}" target="_blank" class="uk-link-text"
                                   style="margin-right: 20px;">{{ $link['name'] }}</a>
                            @endforeach
                        </div>

                    </div>

                </div>



                <div id="qzhai-sidebar" class="uk-width-1-4@s">
                    <div class="qzhai-sidebar-box">
                        <div uk-sticky="bottom: #qzhai-sidebar">
                            <ul class="qzhai-sidebar">

                                <li id="qzhai_widget_posts-3" class="qzhai-widget qzhai-widget-posts">
                                    <div class="uk-card uk-card-default">
                                        <div class="uk-card-header">
                                            <h4>
                                                语录日记
                                                <span style="margin-left: 35%;cursor:pointer" onclick="change();">换一换</span>
                                            </h4>
                                        </div>

                                        <ul class="qzhai-widget-posts-box">
                                           @if(isset($quotation))
                                               <input type="hidden" id="quotation_id" value="{{ $quotation->id }}">
                                                <p id="quotation">
                                                    {{ $quotation->content }} — {{ $quotation->author }}
                                                </p>

                                           @endif
                                        </ul>
                                    </div>
                                </li>

                                <li id="qzhai_widget_posts-3" class="qzhai-widget qzhai-widget-posts"><div class="uk-card uk-card-default">
                                        <div class="uk-card-header">
                                            <h4>
                                                近期文章
                                            </h4>
                                        </div>

                                        <ul class="qzhai-widget-posts-box">
                                            @foreach($news as $new)
                                                <li class="text">
                                                    <a href="{{ route('details2').'?id='.$new['id'] }}" data-can-open="1">{{ $new->title }}</a>
                                                </li>
                                            @endforeach
                                        </ul>
                                    </div>
                                </li>

                                <li id="categories-4" class="qzhai-widget widget_categories">
                                    <div class="uk-card uk-card-default">
                                        <div class="uk-card-header"><h4>分类目录</h4>
                                        </div>

                                        <ul>
                                            @foreach($category as $cate)
                                                <li class="cat-item cat-item-2">
                                                    <a href="{{ route('category2').'?category_id='.$cate['id'] }}">{{ $cate['name']  }}</a>
                                                </li>
                                            @endforeach
                                        </ul>

                                    </div>
                                </li>

                            </ul>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>



<script>
    var qzhai = {
        "url":"http://demo.qzhai.net/gohan",
        "ajaxUrl":"http://demo.qzhai.net/gohan/wp-admin/admin-ajax.php",
        "_use_queue":[],
        "assets":"http://demo.qzhai.net/gohan/wp-content/themes/gohan-qzhai/assets/",
        "is_mobile":false,
        "comment_nonce":"99160c62f92b8d1b4b903a0d2d1f2a2f"
    };
    qzhai.ajaxIgnore = "";
    func_qzhai.push(function($){
        $('.qzhai-content pre').each(function(i, e) {
            $(e).addClass('qzhai_highlight').append('<div class="qzhai_highlight_heade"><span></span><div>');
            hljs.highlightBlock(e);
        });
    });
</script>

<script type="text/javascript" src="/js/highlight.pack.js"></script>
<script type="text/javascript" src="/js/jquery.js"></script>
<script type="text/javascript" src="/js/jquery-migrate.min.js"></script>
<script type="text/javascript" src="/js/gohan.js"></script>
<script src="/js/jquery-3.1.1.js"></script>

{{--<script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>--}}

<script>
    function change(){
        var quotation_id = $("#quotation_id").val();
        var token =  "{{ csrf_token() }}";
        $.ajax({
            headers: {
                'X-CSRF-TOKEN':token,
            },
            url : "{{ route('change') }}",
            data : {'id' : quotation_id},
            type : 'POST',
            dataType : 'json',
            success : function(result){
                if(result.code==1){
                    var data = result.data;
                    var author = data[0].author;
                    var content = data[0].content;
                    $("#quotation").text(content + "—" + author);
                }
            }
        });
    }


    function happy(){
        var token =  "{{ csrf_token() }}";
        $.ajax({
            headers: {
                'X-CSRF-TOKEN':token,
            },
            url : "{{ route('happy') }}",
            data : {},
            type : 'POST',
            dataType : 'json',
            success : function(result){
                if(result.code==1){
                    var data = result.data[0];
                    $("#comments").hide();
                    $("#happy").show();
                    $("#happy_text").text(data.content);
                }
            }
        });
    }

    function login()
    {
        window.location.href = '{{route('login')}}';
    }

    function logout()
    {
        // 弹出确认框
        if (confirm('确认退出登录吗？')) {
            // 确认后提交表单
            window.location.href =  '{{route('logout')}}';
        }

    }

</script>




</body>

</html>
